<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<c:if test="${admin}">
		<table>
			<tr>
				<td><form
						action="http://localhost:8080/fr.aquasys.projet1/Commande"
						method="post">
						<button type="submit">Articles</button>
						<input type="hidden" value="commandeEnCours" name="commande" />
					</form></td>
				<td><form
						action="http://localhost:8080/fr.aquasys.projet1/Commande"
						method="post">
						<button type="submit">Stock</button>
						<input type="hidden" value="nouvelleCommande" name="commande" />
					</form></td>
				<td><form
						action="http://localhost:8080/fr.aquasys.projet1/Commande"
						method="post">
						<button type="submit">Commandes</button>
						<input type="hidden" value="commandeEnCours" name="commande" />
					</form></td>
				<td><form
						action="http://localhost:8080/fr.aquasys.projet1/Commande"
						method="post">
						<button type="submit">Utilisateurs</button>
						<input type="hidden" value="nouvelleCommande" name="commande" />
					</form></td>
			</tr>
		</table>
	</c:if>

	<c:if test="${!admin}">
		<table>
			<tr>
				<td><form
						action="http://localhost:8080/fr.aquasys.projet1/Commande"
						method="post">
						<button type="submit">Commande en cours</button>
						<input type="hidden" value="commandeEnCours" name="commande" />
					</form></td>
				<td><form
						action="http://localhost:8080/fr.aquasys.projet1/Commande"
						method="post">
						<button type="submit">Nouvelle Commande</button>
						<input type="hidden" value="nouvelleCommande" name="commande" />
					</form></td>
			</tr>
		</table>
	</c:if>

</body>
</html>